package com.codemonkey.lq.qd.db;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.session.SqlSession;

import com.codemonkey.lq.qd.db.support.PageParameter;

public interface ICoreDao {
	public List<Map<String,Object>> selectListWithoutCloseSqlSession(SqlSession session,String sqlId, Object param) throws Exception;
	
	public List selectListByPageWithoutCloseSqlSession(SqlSession session,String sqlId, Object param, PageParameter pageParameter) throws Exception;
	
	public Map selectOneWithoutCloseSqlSession(SqlSession session,String sqlId, Object param) throws Exception;
	
	public Object selectObjectWithoutCloseSqlSession(SqlSession session,String sqlId, Object param) throws Exception;
	
	public int insertWithoutCloseSqlSession(SqlSession session,String sqlId, Object param) throws Exception;
	
	public int updateWithoutCloseSqlSession(SqlSession session,String sqlId, Object param) throws Exception;
	
	public int deleteWithoutCloseSqlSession(SqlSession session,String sqlId, Object param) throws Exception;
}
